var express = require('express');
var router = express.Router();
var userController = require('../controllers/userController')

//注册
router.post('/', function(req, res, next) { 
    userController.register(req,res)
})
//登录
router.post('/login',function(req,res,next){
    userController.login(req,res)
})
module.exports = router;